$(function(){
    $(".check span").click(function(){
        var check=$(".check span:first-child i");
        if(check.hasClass('fa-check'))
            check.removeClass('fa-check');
        else
            check.addClass('fa-check');
    });
    $('#next').click(function () {
    	if ($('.check span:first-child i').hasClass('fa-check')) {
      	  	$("#waytopra").prop("checked","checked");
      	  	$('#nextque').submit();
    	}else{
      	  	$("#waytopra").prop("checked","");
    		$("#nextque").submit();
    	}
    });
});
